//暴露一个对象
module.exports = {
  //端口号
  PORT: 8081,
  //错误编号
  error: {
    PASSWORD_NOT_SAME: "1001",
    USERNAME_FORMAT_ERROR: '1002',
    USERNAME_EXISTS: '1003',
    LACK_OF_ID: '1004',
    USER_NOT_FOUND: '1005',
    FORM_PARSE_ERROR: '1006',
    USERNAME_OR_PWD_ERROR: '1007',
    TOKEN_MISS: '1008', 
    TOKEN_VERITY_FAIL: '1009', 

    SERVER_ERROR: '5000',
    SUCCESS_CODE: '2000'
  },
  //声明配置 秘钥 暗号
  SECRET: 'abcd123456789@',
  EXPIRE_TIME: 60 * 60 * 24
}